package cn.stylefeng.guns.modular.household.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 家庭成员
 *
 * @author lichenhui
 * @date 2024/03/20
 */
@Data
@TableName("cq_household_member")
public class HouseholdMember extends BaseEntity implements Serializable {

    @TableId("member_id")
    @ChineseDescription("家庭成员ID")
    private Long memberId;

    @TableField("household_id")
    @ChineseDescription("户ID")
    private Long householdId;

    @TableField("name")
    @ChineseDescription("姓名")
    private String name;

    @TableField("member_type")
    @ChineseDescription("与户主关系")
    private String memberType;

    @TableField("id_card")
    @ChineseDescription("身份证号")
    private String idCard;

    @TableField("birthday")
    @ChineseDescription("出生日期")
    private String birthday;

    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @ChineseDescription("是否删除：Y-被删除，N-未删除")
    private String delFlag;
}
